package 左旋转字符串;

public class Solution
{
    public String LeftRotateString(String str,int n)
    {
        //判断输入
        if (str.length()<=n)
            return str;
        return str.substring(n)+str.substring(0,n);
    }

    public static void main(String[] args)
    {
        Solution solution = new Solution();
        System.out.println(solution.LeftRotateString("abcXYZdef",3));
    }
}
